package com.zayats.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;

import org.springframework.jdbc.core.RowMapper;

public class ShoplistsRowMapper implements RowMapper {
	public Object mapRow(ResultSet result, int arg1) throws SQLException {

		HashMap<String, Object> temp = new HashMap<String, Object>();
		temp.put("shoplistId", result.getInt("shoplist_id"));
		temp.put("name", result.getString("name"));
		temp.put("familyId", result.getInt("family_id"));
		return temp;
	}

}
